<?php
include 'modules/product.php'
?>
<!--
<div class="Story">
    <div class="StoryTitle">First story</div>
    <div class="StoryExpires" expires="1298597720"></div>
    <div class="StoryBody">This is the first story</div>
</div>
<script type="text/javascript">
function updateExpires(target)
{
    var elem = $(target);

    // Fetch the expiration timestamp from the attribute PHP created,
    // and fetch the current timestamp in seconds. (The Date.now() function
    // return milliseconds, so we divide by 1000 to get the seconds)
    var stamp = parseInt(elem.attr('expires'));
    var now = Date.now() / 1000;

    // Make sure the expiration data is in the future.
    if (stamp > now)
    {
        // Get the remaining seconds and extract the hours, minutes and
        // seconds we need to construct a proper time format.
        var remaining = stamp - now;
        var hours = Math.floor(remaining / 3600);
        var minutes = Math.floor((remaining - (hours * 3600)) / 60);
        var seconds = Math.floor(remaining - (hours * 3600) - (minutes * 60));

        // Add 0 in front of numbers that are lower than 10. Otherwise
        // we'd get stuff like: 7:12:8 instead of 07:12:08.
        hours = hours < 10 ? "0" + hours : hours;
        minutes = minutes < 10 ? "0" + minutes : minutes;
        seconds = seconds < 10 ? "0" + seconds : seconds;

        // Tada!
        elem.html(hours + ":" + minutes + ":" + seconds);
    }
    else
    {
        // This one is expired.
        elem.html("Expired!");
        elem.css('color', 'red');
        window.clearInterval(this.intRef);
    }
}

$(document).ready(function() {
    // Find and loop through each fo the "StoryExpires" classes.
    $("div.Story .StoryExpires").each(function()
    {
        // Execute the updateExpiresfunction on the element every 1000
        // milliseconds.
        window.setInterval(updateExpires, 1000, this);
    });
})
</script>
-->